package com.dzt.androidframework.network.mobapi.cook;

import rx.Observable;

/**
 * Created by M02323 on 2017/12/6.
 */

public class CookManager {
	private CookService cookService;

	public CookManager() {
		cookService = CookRetrofit.getInstance().getServer();
	}

	public Observable<Category> queryCategory(String key) {
		return cookService.queryCategory(key);
	}

	public Observable<Cook> queryCook(String key, String id) {
		return cookService.queryCook(key, id);
	}

	public Observable<CookMenu> queryCookMenu(String key, String cid, int page, int size) {
		return cookService.queryCookMenu(key, cid, page, size);
	}
}
